package virtual_machine;

public class Code {
	
	/**
	 * The arguments a Code can have
	 */
	private double[] args;
	
	/**
	 * The Opcode of the Code
	 */
	private Opcode opcode;
	
	/**
	 * Constructor
	 * @param opcode
	 * @param args
	 */
	public Code(Opcode opcode, double ... args) {
		this.opcode = opcode;
		this.args = args;
	}
	
	/**
	 * Getter
	 * @return {@link #opcode}
	 */
	public Opcode getOpcode() {
		return this.opcode;
	}
	
	/**
	 * Getter
	 * @return {@link #args}
	 */
	public double[] getArgs() {
		return args;
	}
 		
}
